package cn.hls.service;

import java.util.List;

import cn.hls.entity.GoodsCategory;
import cn.hls.entity.vo.PageInfo;

/**
 *@fileName: GoodsCategoryDao.java
 *@package: cn.christ.dao
 *@Description:  货物类型信息数据业务逻辑操作接口
 *@author: yinghui.zhang
 *@email: uuhui@163.com
 *@date: 2015-8-9
 */
public interface GoodsCategoryService extends BaseService<GoodsCategory> {
	/**
	 * 分页显示货物类型信息
	 * @param pageInfo  分页对象
	 * @param entity 货物类型对象
	 * @throws Exception
	 */
   PageInfo<GoodsCategory> loadGoodsCategoryInfo(PageInfo<GoodsCategory> pageInfo ,GoodsCategory entity)throws Exception;
   /**
    * 根据名称或代码获取货物类型信息
    * @param code 代码
    * @param name 名称
    * @return GoodsCategory
    * @throws Exception
    */
   GoodsCategory loadGoodsCategoryByCodeOrName(String code,String name)throws Exception;
   
   /**
    * 获取货物类型信息
    * @param entity查询对象
    * @return List<GoodsCategory>
    */
   List<GoodsCategory> loadGoodsCategoryInfo(GoodsCategory entity)throws Exception;
}
